<?php

require_once dirname(__FILE__).'/../lib/type_jourGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/type_jourGeneratorHelper.class.php';

/**
 * type_jour actions.
 *
 * @package    sopN
 * @subpackage type_jour
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class type_jourActions extends autoType_jourActions
{
    public function preExecute() {
	$admin = sfConfig::get('app_admin_only', 'no');
	if (($admin) && (!$this->getUser()->getGuardUser()->hasPermission("administration")))
	    return $this->forward("sfGuardAuth", "secure");
	parent::preExecute();
    }
}
